package cn.com.jenson.service.user.repository;

import cn.com.jenson.common.BasicRepository;
import cn.com.jenson.entity.user.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Integer>, BasicRepository<User> {
    User findByAccount(String account);

    User findByAccountAndDeleted(String account, Boolean deleted);
    User findByAccountAndPasswordAndDeleted(String account,String password, Boolean deleted);

}
